package com.aios.entity;

import com.aios.util.AiosAccessUtil;

public class Controller extends AbstractEntity {

	public static final String CLASS_KEY = "2001";
	public static final String TABLE_KEY = "0301";
	
	
	public static final String SWITCH_ONLY="SWITCH_ONLY";
	public static final String CAMERA_ONLY="CAMERA_ONLY";
	public static final String ROTATE_CAMERA="ROTATE_CAMERA";
	private String name;
	private String userName;
	private String userPassword;
	private String operateMethod;
	private String url;
	private String protocol;
	private String httpPort;
	private String rtspPort;
	private String controlPort;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserPassword() {
		return userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}

	public String getOperateMethod() {
		return operateMethod;
	}

	public void setOperateMethod(String operateMethod) {
		this.operateMethod = operateMethod;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	
	public String getProtocol() {
		return protocol;
	}

	public void setProtocol(String protocol) {
		this.protocol = protocol;
	}

	public String getHttpPort() {
		return httpPort;
	}

	public void setHttpPort(String httpPort) {
		this.httpPort = httpPort;
	}

	public String getRtspPort() {
		return rtspPort;
	}

	public void setRtspPort(String rtspPort) {
		this.rtspPort = rtspPort;
	}

	public String getControlPort() {
		return controlPort;
	}

	public void setControlPort(String controlPort) {
		this.controlPort = controlPort;
	}
	
	public String getVideoUrl() {
		return AiosAccessUtil.PROTOCOL + "://"+ this.getUrl() + ":" + this.getRtspPort();
	}

}